export default ({
    state: {
        MKsUjc: [
            {
                id: 0,
                name: "模块A",
                sub: []
            }
        ],
        modelval:""
    },
    getters: {
    },
    mutations: {
        TaBlefun(state, value) {
            state.MKsUjc.push({
                id: state.MKsUjc.length ,
                name: value,
                sub: []
            })
        },
        modelfun(state,value){
            console.log(value);
            state.modelval=value;
        }
    },
    actions: {
        asynctablefunction({ commit }, value) {

            commit("TaBlefun", value)
        }
    },
    modules: {
    },
    namespaced: true
})
